package net.zoneland.knowledge.controller.bean;

import java.io.Serializable;
import java.util.List;

import net.zoneland.knowledge.enums.WorkStatusEnum;
import net.zoneland.knowledge.model.WorkSubTaskInfo;

/**
 * 分任务操作的返回结果
 */
public class SubTaskOperationResult implements Serializable {
    /**
     * “1”成功，“0”，失败.
     */
    private String result = "1";

    /**
     * result为“1”时返回“成功”；为“0”时返回“具体错误信息描述”.
     */
    private String message = "成功";

    /**
     * 涉及本次操作的分任务对象列表.
     */
    private List<WorkSubTaskInfo> subTaskInfoList;

    /**
     * 涉及本次操作的分任务的父级分任务对象列表.
     */
    private List<WorkSubTaskInfo> parentSubTaskInfoList;

    /**
     * 父级工单的状态.
     */
    private WorkStatusEnum parentWorkApplyInfoStatus;

    /**
     * 父级工单的处理人.
     */
    private String parentWorkApplyHandler;

    /**
     * 父级工单的待办任务id，有变化就传值，没变化时不传值.
     */
    private String tiid;

    /**
     * Gets the value of result.
     *
     * @return the value of result
     */
    public String getResult() {
        return result;
    }

    /**
     * Sets the result.
     *
     * @param result result
     */
    public void setResult(final String result) {
        this.result = result;
    }

    /**
     * Gets the value of message.
     *
     * @return the value of message
     */
    public String getMessage() {
        return message;
    }

    /**
     * Sets the message.
     *
     * @param message message
     */
    public void setMessage(final String message) {
        this.message = message;
    }

    /**
     * Gets the value of subTaskInfoList.
     *
     * @return the value of subTaskInfoList
     */
    public List<WorkSubTaskInfo> getSubTaskInfoList() {
        return subTaskInfoList;
    }

    /**
     * Sets the subTaskInfoList.
     *
     * @param subTaskInfoList subTaskInfoList
     */
    public void setSubTaskInfoList(final List<WorkSubTaskInfo> subTaskInfoList) {
        this.subTaskInfoList = subTaskInfoList;
    }

    /**
     * Gets the value of parentSubTaskInfoList.
     *
     * @return the value of parentSubTaskInfoList
     */
    public List<WorkSubTaskInfo> getParentSubTaskInfoList() {
        return parentSubTaskInfoList;
    }

    /**
     * Sets the parentSubTaskInfoList.
     *
     * @param parentSubTaskInfoList parentSubTaskInfoList
     */
    public void setParentSubTaskInfoList(final List<WorkSubTaskInfo> parentSubTaskInfoList) {
        this.parentSubTaskInfoList = parentSubTaskInfoList;
    }

    /**
     * Gets the value of parentWorkApplyInfoStatus.
     *
     * @return the value of parentWorkApplyInfoStatus
     */
    public WorkStatusEnum getParentWorkApplyInfoStatus() {
        return parentWorkApplyInfoStatus;
    }

    /**
     * Sets the parentWorkApplyInfoStatus.
     *
     * @param parentWorkApplyInfoStatus parentWorkApplyInfoStatus
     */
    public void setParentWorkApplyInfoStatus(final WorkStatusEnum parentWorkApplyInfoStatus) {
        this.parentWorkApplyInfoStatus = parentWorkApplyInfoStatus;
    }

    public String getParentWorkApplyHandler() {
        return parentWorkApplyHandler;
    }

    public void setParentWorkApplyHandler(final String parentWorkApplyHandler) {
        this.parentWorkApplyHandler = parentWorkApplyHandler;
    }

    /**
     * Gets the value of tiid.
     *
     * @return the value of tiid
     */
    public String getTiid() {
        return tiid;
    }

    /**
     * Sets the tiid.
     *
     * @param tiid tiid
     */
    public void setTiid(final String tiid) {
        this.tiid = tiid;
    }
}
